package com.medica.ledproject.entity;

import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author xiaona
 * @date 2024/5/29
 * @description TODO
 */
@Data
public class RequestProN  extends  RequestPro{
    @Parameter(name = "proID", description = "节目id", required = true)
    String proID;

    public String[] getProID1() {
        if(StringUtils.isEmpty(proID)){
            return null;
        }
        if(proID.indexOf("[")>0) {
            proID = proID.substring(1, proID.length());
        }
        return proID.split(",");
    }
}

